/******************************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Ltd.                       */
/*                                                                            */
/*  NAME      = msmq_comm.h                                                   */
/*  NOTE      =                                                               */
/*  DATE      = 2015/08/13 by wuwk                                            */
/******************************************************************************/
#ifndef _MSMQ_COMM_H_
#define _MSMQ_COMM_H_

#include "frreport_comm.h"
#include "frbyte_buffer.h"

#define MSMQ_TRUE                         0
#define MSMQ_FALSE                        1

#define MSMQ_REQUEST                      1
#define MSMQ_RESPONSE                     2

#define MSMQ_REPORT_KEY                    "mq."


int msmq_check_msg_priority(uint32_t u32_priority);
uint32_t msmq_get_msglen(Frbyte_Packet *p_st_data);
int msmq_get_char(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, char *p_report_pre);
int msmq_get_short(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, char *p_report_pre);
int msmq_get_int(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, char *p_report_pre);
int msmq_get_long(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, char *p_report_pre);
int msmq_get_float(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, char *p_report_pre);
int msmq_get_double(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, char *p_report_pre);
int msmq_get_boolean(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, char *p_report_pre);
int msmq_get_string(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, uint32_t u32_data_len, char *p_report_pre);

#endif
